package iterator_pattern.exercise.exercise1;

/**
 * 技术部
 * @author ricejson
 */
public class TechDepartment extends Department {
    private static final String[] employees = {"张三", "李四"};
    public TechDepartment(String name) {
        super(name);
    }

    public int size() {
        return employees.length;
    }

    public String get(int idx) {
        return employees[idx];
    }

    @Override
    public Iterator createIterator() {
        return new TechDepartmentIterator(this);
    }
}
